package com.buaa.airticketbookingsystem.Dao;

import com.buaa.airticketbookingsystem.Entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserDao {
    public User selectUserByEmail(String email);
    public void registerNewUser(User user);
    public void changeUserPassword(String email, String new_password);
    public void charge(String email, double charge);
    public void pay(String email, double pay);
    public void logout(String email);
    public void login(String email);
    public void refund(long time, String email);
    public void lowCredit(String email);
    public void highCredit(String email);
}
